<!--
  描述：公共列表表格组件使用范例html
  公司：xxx有限公司
  版权：xxx2020
  作者：oyjl
  时间：2020-04-22 10:43:45
  -->

<!-- 搜索条件 -->
<form [formGroup]="formModule" class="search-main" (ngSubmit)="searchDict()">
  <div class="search-item">
    <label for="typeName">系统字典项：</label>
    <input type="text" pInputText formControlName="typeName" id="typeName" placeholder="请输入" autocomplete="off" />
  </div>
  <div class="search-item">
    <label for="type">字典类型值：</label>
    <input type="text" pInputText formControlName="type" id="type" placeholder="请输入" autocomplete="off" />
  </div>
  <div class="search-item">
    <label for="type">字典值：</label>
    <p-dropdown [options]="dictList" optionLabel="desc" placeholder="请选择" [showClear]="true" [(ngModel)]="dictSelected"
      [ngModelOptions]="{'standalone': true}" [style]="{color: '#000'}" (onShow)="dictDropdown($event, true)"
      [filter]="true" filterPlaceholder="请输入过滤条件" emptyFilterMessage="未找到结果" [virtualScroll]="true" itemSize="20">
    </p-dropdown>
  </div>
  <div class="search-item search-btn">
    <button pButton type="submit" icon="fa fa-search" label="查询"></button>
  </div>
  <div class="search-item search-btn flex-item-right">
    <button pButton type="button" [oyRButtonAuthority]="'beforeAuth'" icon="fa fa-plus" label="新增"></button>
    <button pButton type="button" [oyRButtonAuthority]="'beforeAuth'" icon="fa fa-download" label="下载模板"></button>
    <button pButton type="button" icon="fa fa-upload" label="批量导入"></button>
    <button pButton type="button" icon="fa fa-check" label="展示选中数据" (click)="showSelectedData()"></button>
  </div>
</form>

<!-- 表格组件 -->
<oy-r-table [rTable]="rTable"></oy-r-table>
